Learn R Programming

icd (version 3.3)

[[.comorbidity_map: Extract vector of codes from an ICD comorbidity map

Description

Equivalent to a list, but preserves class of extracted vector.

Usage

# S3 method for comorbidity_map
[[(x, index, ...)

Arguments

x

comorbidity map, which is a named list

index

integer

...

arguments passed on to other functions

Examples

Run this code
# NOT RUN {
# show that attributes are preserved when subsetting
stopifnot(is.short_diag(icd10_map_ahrq[[1]]))
# }

Run the code above in your browser using DataLab